package com.bright.cwduijie.duijie.pojo.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author  hxj
 * @Date 2024-07-14 20:16:19 
 * @Description  
 */

@Data
@Entity
@Table(name ="DJ_SZRJZ")
public class DayBooks implements Serializable {

	private static final long serialVersionUID =  6771721496013549277L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@JsonIgnore
   	@Column(name = "id")
	private Integer id;

	@NotBlank
	@Length(max = 36)
   	@Column(name = "DATA_KEY")
	private String DATA_KEY;

	@NotBlank
	@Length(max = 18)
   	@Column(name = "TYSHXYDM")
	private String TYSHXYDM;

	@NotNull
   	@Column(name = "TYPE")
	private Integer TYPE;

	@NotNull
	@JsonFormat(locale = "zh_CN", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
   	@Column(name = "TRADE_TIME")
	private Date TRADE_TIME;

	@NotNull
   	@Column(name = "AMOUNT")
	private String AMOUNT;

   	@Column(name = "BALANCE")
	private String BALANCE;

	@NotBlank
	@Length(max = 1024)
   	@Column(name = "REMARK")
	private String REMARK;

	@NotBlank
	@Length(max = 64)
   	@Column(name = "SOURCE_ACCOUNT_NAME")
	private String SOURCE_ACCOUNT_NAME;

	@NotBlank
	@Length(max = 64)
   	@Column(name = "SOURCE_ACCOUNT_NUMBER")
	private String SOURCE_ACCOUNT_NUMBER;

	@Length(max = 64)
   	@Column(name = "SOURCE_ACCOUNT_BANK_NAME")
	private String SOURCE_ACCOUNT_BANK_NAME;

	@NotBlank
	@Length(max = 64)
   	@Column(name = "TARGET_ACCOUNT_NAME")
	private String TARGET_ACCOUNT_NAME;

	@NotBlank
	@Length(max = 64)
   	@Column(name = "TARGET_ACCOUNT_NUMBER")
	private String TARGET_ACCOUNT_NUMBER;

	@Length(max = 64)
   	@Column(name = "TARGET_ACCOUNT_BANK_NAME")
	private String TARGET_ACCOUNT_BANK_NAME;

   	@Column(name = "KJPZ_DATA_KEY")
	private String KJPZ_DATA_KEY;

	@JsonIgnore
   	@Column(name = "sjjhbz")
	private Integer sjjhbz;

	@JsonIgnore
   	@Column(name = "opType")
	private Integer opType;

	@JsonIgnore
   	@Column(name = "taskId")
	private String taskId;

}
